<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>所有用户</title>
</head>
<body>
    <h2>所有用户</h2>
    <hr>
    <ul>
{#        <li>#}
{#            <a href="{% url 'app:pages' 1 %}"><button>1</button></a>#}
{#        </li>#}
{#                <li>#}
{#            <a href="{% url 'app:pages' 2 %}"><button>2</button></a>#}
{#        </li>#}
{#                <li>#}
{#            <a href="{% url 'app:pages' 3 %}"><button>3</button></a>#}
{#        </li>#}

        {% for page in total %}
        <li>
            <a href="{% url 'app:pages' page %}"><button>{{ page }}</button></a>
        </li>
        {% endfor %}

    </ul>
    <hr>
    <ul>
        {% for p in persons %}
            <li>{{ p.name }}, {{ p.age }}</li>
        {% endfor %}
    </ul>
</body>
</html>